package com.hqyj.service;

import com.hqyj.exception.R;
import com.hqyj.pojo.PayParameter;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@Component
@FeignClient(value = "server-alipay")
public interface AliPayService {

    //调用支付宝异步支付
    @PostMapping("/aliPay/pay")
    R tranPay(@RequestBody PayParameter payParameter);

}
